<template>
  <div>
    <CardGallery part-name="xuexiao" v-bind:sub-name="subName()"></CardGallery>
  </div>
</template>

<script>
import CardGallery from '@/components/NewsCard/CardGallery.vue'

export default {
  name: 'XuexiaoSub',

  components: {
    CardGallery: CardGallery
  },

  methods: {
    subName: function() {
      return this.$route.params.sub
    }
  }
}
</script>

<style>
.news-card-wrapper {
  background-color: white;
}

.news-card {
  border-radius: 5px;
  padding: 0 16px;
}

.news-card-inner {
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}

.news-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

.news-time {
  font-size: 12px;
}
</style>
